package com.latefly.skewwork.ui.page.tools.qrcode.scan

import androidx.compose.runtime.Composable

@Composable
fun QrCodeScan() {
////检查是否拥有权限
//    var hasPermission by remember {
//        mutableStateOf(
//            ContextCompat.checkSelfPermission(
//                LocalContext.current, Manifest.permission.CAMERA
//            ) == PackageManager.PERMISSION_GRANTED
//        )
//    }
//
//    //权限启动器
//    val launcher = rememberLauncherForActivityResult(
//        contract = ActivityResultContracts.RequestPermission(),
//        onResult = {
//            hasPermission = it
//        }
//    )
//
////启动时运行启动器
//    LaunchedEffect(key1 = true) {
//        launcher.launch(Manifest.permission.CAMERA)
//    }


}